<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		// date1 = "2018-07-26";  时间戳  1970 01 01 0 0 0 0
 
		// date2 = "2018-07-18";

		// res = date1-date2;

		// document.write(res);
		
		// now = new Date();

		gq = new Date("2018-10-01 0:0:0");

		// console.log(now)
		// console.log(now.getTime()/1000);
		// console.log(gq)
		// console.log((gq.getTime()/1000-now.getTime()/1000)/86400);


		now = new Date();
		start = now.getTime();
		num = 0;
		for (var i = 0; i <=100000; i++) {
			num +=i;
			// console.log(i);
		}

		now = new Date();

		end = now.getTime();

		// console.log(end-start)
		// console.log(num);


		yd = new Date("2018-01-01");

		time = yd.getTime();

		cn = 0;

		while(time< (new Date()).getTime()){

			time += 86400*1000;

			newDay = new Date(time)

			if(newDay.getDay()==0){
				cn++;
			}

		}

		console.log(cn)


		for(var i =1986; i<2018 ;i++){
			day = i+"-12-25";
			console.log(day);
		}

		

		// now = new Date();

	</script>
</head>
<body>
	
</body>
</html>